<%@ include file="/taglibs.jsp"%>
<jsp:directive.page import="java.util.Random"/>
<jsp:directive.page import="java.util.Date"/>
<%if(session.getAttribute("randFormID") == null){
	Random gen = new Random(new Date().getTime());
	session.setAttribute("randFormID", gen.nextInt() + "");
}%>

<title>Winter War Administration - Edit Table</title>

<html:form action="/wwadmin/table" focus="table.tableName">
	<input type="hidden" name="method" value="save"/>
	<input type="hidden" name="formID" value="<%=session.getAttribute("randFormID") %>"/>
	<input type="hidden" name="conID" value="${conID}"/>
	<html:hidden property="table.tableID"/>
	<table>
		<tbody>
			<tr>
				<th><bean:message key="table.tableName"/></th>
				<td><html:text property="table.tableName"/></td>
				<th><bean:message key="table.physicalTables"/></th>
				<td><html:text property="table.physicalTables"/></td>
			</tr><tr>
				<th><bean:message key="table.areaDesc"/></th>
				<td><html:text property="table.areaDesc"/></td>
				<th><bean:message key="table.area"/></th>
				<td><html:text property="table.area"/></td>
			</tr>
			<tr>
				<th><bean:message key="table.chairs"/></th>
				<td><html:text property="table.chairs"/></td>
			</tr>
			<tr>
				<td><html:submit>Save</html:submit></td>
			</tr>
		</tbody>
	</table>
</html:form>
